import * as types from './mutation-types'

const matutaions = {
  [types.SET_POST](state, post) {
    state.post = post
  },
  [types.SET_ISSHOW](state, flag) {
    state.isShow = flag
  },
  [types.SET_GRADE](state, grade) {
    state.grade = grade
  }
}

export default matutaions